﻿using UIOC.Attributes;

namespace UIOC.Tests.Services {

    public interface ITestService : IService {

        int Value { get; }

        void Plus(int value);

        void Minus(int value);
    }

    [Implement(typeof(ITestService))]
    public partial class TestService : Service, ITestService {

        private int m_Value;
        public int Value => m_Value;

        public void Plus(int value) {
            m_Value += value;
        }

        public void Minus(int value) {
            m_Value -= value;
        }
    }
}
